
//
//  LinkMenController.m
//  HandheldHospital
//
//  Created by 张鹏的电脑 on 16/3/1.
//  Copyright © 2016年 zhangchao. All rights reserved.
//

#import "LinkMenController.h"
#import "LinkMenCell.h"
#import "ChatController.h"

@interface LinkMenController ()

@end

@implementation LinkMenController

- (void)viewDidLoad {
    [super viewDidLoad];
    //隐藏tabBar
    self.tabBarController.tabBar.hidden = YES;
    
    //注册 cell
    [self.tableView registerNib:[UINib nibWithNibName:@"LinkMenCell" bundle:nil] forCellReuseIdentifier:@"cell"];
    
    
    
}



- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {

    
    return 1;
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {

    
    return 1;
}


- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    LinkMenCell *cell = [tableView dequeueReusableCellWithIdentifier:@"cell" forIndexPath:indexPath];
    
  
    
    return cell;
}

-(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath{
    
    return 88;
    
}

-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
    ChatController  *cc = [[ChatController alloc] init];
    
    [self.navigationController pushViewController:cc animated:YES];
    
    
    
}


@end
